a = {10, 20, 30, 40, 50}
b = {20, 30, 50, 70, 80}

# 交集操作
print(a & b)    # {50, 20, 30}
# 并集操作
print(a | b)    # {70, 40, 10, 80, 50, 20, 30}
# 差集操作
print(a - b)    # {40, 10}
print(b - a)    # {80, 70}
# 补集操作
print(a ^ b)    # {80, 70, 40, 10}
